{template 'common/header'}
<ul class="nav nav-tabs">
    <li class="active"><a href="{php echo $this->createWebUrl('cardlog', array('op' => 'display'))}">日志</a></li>
    </ul>
<style>
    .label{line-height: 2}
    .danger{position: relative}
</style>

<div class="panel panel-info">
    <div class="panel-heading">查询</div>
    <div class="panel-body">
        <form action="./index.php" method="get" class="form-horizontal" role="form" id="form">
            <input type="hidden" name="c" value="site">
            <input type="hidden" name="a" value="entry">
            <input type="hidden" name="m" value="orange_wechatcard">
            <input type="hidden" name="do" value="cardlog">

            <input name="token" type="hidden" value="{$_W['token']}" />

            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">卡号</label>
                <div class="col-sm-8 col-xs-12">
                    <input type="text" class="form-control" name="card_id" value="{$_GPC['card_id']}" />
                </div>
                <div class="pull-right col-xs-12 col-sm-3 col-md-2 col-lg-2">
                    <input type="submit" class="btn btn-primary span3" name="submit" value="提交" />
                    <!--<input type="submit" name="submit" class="btn btn-default" value="搜索"><i class="fa fa-search"></i></input>-->
                </div>
            </div>

        </form>
    </div>
</div>
<div class="panel panel-default">
    <div class="panel-body table-responsive">
        <table class="table table-hover">
            <thead>
            <tr>
                <th width="150">id</th>
                <th width="150">uid</th>
                <th width="150">会员卡号</th>
                <th width="150">openid</th>
                <th width="150">code</th>
                <th width="150">创建时间</th>
                <th width="150">状态</th>
                <!--<th width="250" class="text-right">操作</th>-->
            </tr>
            </thead>
            {loop $list $row}

            <tr {if $row['is_birth'] == 1}class="danger"{/if}>
            <td>{$row['id']}</td>
            <td>{$row['uid']}</td>
            <td>{$row['card_id']}</td>
            <td>{$row['openid']}</td>
            <td>{$row['code']}</td>
            <td>{php echo date('Y-m-d', $row['addtime']);}</td>


            <td>
                {if $row['status'] == 1}
                <span class="label label-success">正常</span>
                {elseif $row['status'] == 4}
                <span class="label label-warning">被删除</span>
                {else}
                <span class="label label-default">other</span>
                {/if}


            </td>

            <!--<td class="text-right">-->

                <!--<div class="btn-group" style="margin-bottom: 5px">-->
                    <!--<a href="{php echo $this->createWebUrl('editcard', array('op' => 'edit','cardId'=>$row['id']));}" title="编辑会员卡" class="btn btn-default">编辑会员卡</a>-->
                <!--</div>-->

                <!--<br>-->
                <!--&lt;!&ndash;<div class="btn-group">&ndash;&gt;-->
                <!--&lt;!&ndash;<a class="btn btn-default" href="{php echo $this->createWebUrl('cardmanage', array('op' => 'delete', 'cardid' => $row['id']))}" onclick="return confirm('此操作不可恢复，确认删除？');return false;">删除</a>&ndash;&gt;-->
                <!--&lt;!&ndash;<a class="btn btn-default" href="{php echo $this->createWebUrl('cardmanage', array('op' => 'record', 'uid' => $row['uid']))}">消费记录</a>&ndash;&gt;-->
                <!--&lt;!&ndash;{if $setting['times_status'] == 1 || $setting['nums_status'] == 1}&ndash;&gt;-->
                <!--&lt;!&ndash;<a class="btn btn-warning manage" href="javascript:;" data-uid="{$row['uid']}">充值/消费</a>&ndash;&gt;-->
                <!--&lt;!&ndash;{/if}&ndash;&gt;-->
                <!--&lt;!&ndash;</div>&ndash;&gt;-->
            <!--</td>-->
            </tr>
            {/loop}
        </table>
    </div>
</div>
{$pager}
